package constant

const (
	RuleTriggerDevData  = "dev_data"
	RuleTriggerDevCtrl  = "dev_ctrl"
	RuleTriggerSchedule = "schedule"
	RuleTriggerManual   = "manual"

	RuleCalMinuteWindow = "minute"
	RuleCalHourWindow   = "hour"
	RuleCalDayWindow    = "day"

	AlgoAverage = "average"
	AlgoDiff    = "diff"
	AlgoSum     = "sum"
	AlgoMax     = "max"
	AlgoMin     = "min"
	AlgoStart   = "start"
	AlgoEnd     = "end"

	ContextProcessorTriggerType = "_reserve_processor_trigger_type"
	ContextRuleId               = "_reserve_rule_id"
	ContextSn                   = "sn"
	ContextMsgType              = "msgType"

	RuleEnable  = "enable"
	RuleDisable = "disable"

	// OneMinCron 每1分钟执行一次
	OneMinCron = "0 0/1 * * * ?"

	// TenMinCron 每10分钟执行一次
	TenMinCron = "0 0/10 * * * ?"

	// HalfHourCron 每30分钟执行一次
	HalfHourCron = "0 0/30 * * * ?"

	// OneHourCron 每小时执行一次
	OneHourCron = "0 0 0/1 * * ?"

	// TwelveHourCron 每12小时执行一次
	TwelveHourCron = "0 0 0/12 * * ?"

	// OneDayCron 每天0点执行一次
	OneDayCron = "0 0 0 * * ?"

	// OneWeekCron 每周的周一执行一次
	OneWeekCron = "0 0 0 ? * 2"

	// OneMonthCron 每个月1号0点执行一次
	OneMonthCron = "0 0 0 1 * ?"
)
